import 'package:flutter/material.dart';

class SecondPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: Text("第二页")),
      body: SecondWidget(),
    );
  }
}

class SecondWidget extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    return SecondMsg();
  }
}

class SecondMsg extends State {
  @override
  Widget build(BuildContext context) {
    return Text("这里是第二页内容");
  }
}
